package hackathon.light.up;

import android.graphics.Color;
import android.util.Log;

import com.e3roid.E3Scene;
import com.e3roid.drawable.Shape;

public class MattElement extends Element{

	private Shape matt_object;
	public MattElement(int row,int col) {
		super(row,col);
		int startX = Grid.POSX - Grid.CELL_SIZE, startY = Grid.POSY - Grid.CELL_SIZE;
		startY += row * Grid.CELL_SIZE;
		startX += col * Grid.CELL_SIZE;
		matt_object = new Shape(startX, startY, Grid.CELL_SIZE-Grid.THICKNESS, Grid.CELL_SIZE-Grid.THICKNESS);
		matt_object.setColor(0,0,0,1);
	}
	
	@Override 
	public void update(LightSource lightSource) {
	}
	
	@Override
	public void draw(E3Scene scene) {		
		scene.getTopLayer().add(matt_object);
	}
}
